<!DOCTYPE HTML>
<html>
<head>
    <title>待支付账单</title>
    <% include common/meta.ejs %>
    <% include common/public.ejs %>
</head>
<body ontouchstart="">
<div class="weui_panel">
    <div class="weui_panel_bd">
        <% for(var i = 0;i < data.length;i++) { %>
        <div class="weui_media_box weui_media_text">
            <div class="weui_media_title"><strong><%= data[i].name %></strong>
            </div>
            <div class="weui_media_desc">
                <p><span>创建日期<%= data[i].createdDate.substr(0,10) %></span>，
                    合计金额：<%= data[i].actualAmount %>
                </p>
            </div>
            <div class="weui_media_info">
                <div>费用明细：</div>
                <% if(data[i].type == '1') {%>
                <div style="margin-left: 1rem;">--房租费&nbsp;<%= data[i].rentalAmount %></div>
                <div style="margin-left: 1rem;">--押金费&nbsp;<%= data[i].pledgeAmount %></div>
                <% } else if(data[i].type == '2') {%>
                <div style="margin-left: 1rem;">--水费&nbsp;<%= data[i].waterNum %>-<%= data[i].preWater %> * <%= data[i].waterPrice %> = <%= data[i].waterAmount %></div>
                <div style="margin-left: 1rem;">--电费&nbsp;<%= data[i].electricNum %>-<%= data[i].preElectric %> * <%= data[i].electricPrice %> = <%= data[i].electricAmount %></div>
                <div style="margin-left: 1rem;">--燃气费&nbsp;<%= data[i].gasNum %>-<%= data[i].preGas %> * <%= data[i].gasPrice %> = <%= data[i].gasAmount %></div>
                <% } else if(data[i].type == '3') {%>
                <div style="margin-left: 1rem;">--维修费&nbsp;<%= data[i].actualAmount %></div>
                <% } else if(data[i].type == '4') {%>
                <div style="margin-left: 1rem;">--保洁费&nbsp;<%= data[i].actualAmount %></div>
                <% } %>
                <div style="margin-left: 1rem;">--其他&nbsp;<%= data[i].otherFee || '0' %></div>
                <a href="wepay?id=<%= data[i].id %>" style="float: right;" class="weui_btn weui_btn_mini weui_btn_warn">去支付</a>
            </div>
        </div>
        <% } %>
    </div>
</div>
<% include common/footer.ejs %>
<script src="<%= global.config.mode %>/Swiper/3.3.1/js/swiper.jquery.<%= global.config.mode %>js"></script>
</body>
</html>